var _EsdDynamicTransformationFunction = function($){
/**
* 命名空间定义
*/
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
* 文本链接 a
*/
//保证所有a标签都有href
$("a").each(function(){

var aHref = this.href;
if( aHref=="" || aHref==undefined ){
$(this).attr("href","javascript:void(0)");
}

//给a标签加title
var aTitle = this.title;
var aText = this.text;

if( aTitle=="" || aTitle==undefined ){
if( aText!="" || aText!=undefined ){
$(this).attr("title",$.trim(aText));
}
}

});

//select下的option添加title
$("option").each(function(){
var oTitle = this.title;
var oText = this.text;
if( oTitle=="" || oTitle==undefined ){
if( oText!="" || oText!=undefined ){
$(this).attr("title",$.trim(oText));
}
}
});
/**
* 图片处理片段
*/

$('img[src="./tpxw/201912/W020191217521895408822.jpg"]').attr('title','我省选手在第四届中国电商讲师大赛中取得佳绩').attr('alt','我省选手在第四届中国电商讲师大赛中取得佳绩');$('img[src="./images/102.gif"]').attr('title','吉林名企').attr('alt','吉林名企');$('img[src="./images/icon_leftnav_03.jpg"]').attr('title','派驻机构').attr('alt','派驻机构');$('img[src="./images/015.gif"]').attr('title','重要链接').attr('alt','重要链接');$('img[src="./images/048.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/016_1.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/100.gif"]').attr('title','会展资讯').attr('alt','会展资讯');$('img[src="./images/012.gif"]').attr('title','工作研究').attr('alt','工作研究');$('img[src="./images/14317_swt_jjh.jpg"]').attr('title','京交会').attr('alt','京交会');$('img[src="./images/logo1.jpg"]').attr('title','中华人民共和国商务部').attr('alt','中华人民共和国商务部');$('img[src="../../images/069.gif"]').attr('title','在线咨询').attr('alt','在线咨询');$('img[src="./images/icon_leftnav_07.jpg"]').attr('title','商务之窗').attr('alt','商务之窗');$('img[src="./tpxw/201912/W020191223520297931125.jpg"]').attr('title','“东北亚贸易便利化国际研讨会”在长春成功召开').attr('alt','“东北亚贸易便利化国际研讨会”在长春成功召开');$('img[src="./images/center_20190926.jpg"]').attr('title','在线申报，服务热线12335，表格下载，办事指南').attr('alt','在线申报，服务热线12335，表格下载，办事指南');$('img[src="./images/right02_20181026.jpg"]').attr('title','栏目分类图片').attr('alt','栏目分类图片');$('img[src="./images/015_1.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="../../images/jggk-0819.png"]').attr('title','机构概况').attr('alt','机构概况');$('img[src="./images/d2.jpg"]').attr('title','机构职能').attr('alt','机构职能');$('img[src="../../images/063.gif"]').attr('title','在线咨询').attr('alt','在线咨询');$('img[src="./images/005.jpg"]').attr('title','搜索').attr('alt','搜索');$('img[src="./images/icon_leftnav_01.jpg"]').attr('title','领导分工').attr('alt','领导分工');$('img[src="./tpxw/201912/W020191230402814489030.jpg"]').attr('title','创建绿色商场 倡导绿色生活 我省3家大型流通企业入选国家级绿色商场').attr('alt','创建绿色商场 倡导绿色生活 我省3家大型流通企业入选国家级绿色商场');$('img[src="./images/icon_leftnav_04.jpg"]').attr('title','厅属单位').attr('alt','厅属单位');$('img[src="./images/logo2.jpg"]').attr('title','吉林省人民政府').attr('alt','吉林省人民政府');$('img[src="./images/018.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/bg_tit_xxgk_cen_qrn20160712.jpg"]').attr('title','信息公开').attr('alt','信息公开');$('img[src="./images/003.gif"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/icon_leftnav_05.jpg"]').attr('title','市场监督  公共服务').attr('alt','市场监督  公共服务');$('img[src="./images/0004.jpg"]').attr('title','公务通邮箱').attr('alt','公务通邮箱');$('img[src="./images/d7.jpg"]').attr('title','在线咨询').attr('alt','在线咨询');$('img[src="./images/009.gif"]').attr('title','政策法规').attr('alt','政策法规');$('img[src="./tpxw/201912/W020191206533602379108.jpg"]').attr('title','“全省木制品行业外经贸业务培训会”成功召开').attr('alt','“全省木制品行业外经贸业务培训会”成功召开');$('img[src="./images/101.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="../../images/075.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/logo40718.jpg"]').attr('title','新农村商网').attr('alt','新农村商网');$('img[src="./sypf_32588/images/P020190823355897448566.png"]').attr('title','吉林省商务厅').attr('alt','吉林省商务厅');$('img[src="./images/106.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/013.gif"]').attr('title','专题信息').attr('alt','专题信息');$('img[src="./images/rmyh0718.jpg"]').attr('title','中国出口信用保险公司').attr('alt','中国出口信用保险公司');$('img[src="./images/dian.gif"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./tpxw/201912/W020191202476680828592.jpg"]').attr('title','四平市隆重举行“冰雪英城热销季” 系列活动启动仪式').attr('alt','四平市隆重举行“冰雪英城热销季” 系列活动启动仪式');$('img[src="./images/111.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/rmyh071820130427.jpg"]').attr('title','吉林省进出口信用担保有限公司').attr('alt','吉林省进出口信用担保有限公司');$('img[src="./images/006.gif"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/logo9.jpg"]').attr('title','中国文明网').attr('alt','中国文明网');$('img[src="../../images/icon.gif"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/d3.jpg"]').attr('title','信息公开').attr('alt','信息公开');$('img[src="./images/108.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/011.jpg"]').attr('title','取消').attr('alt','取消');$('img[src="./sypf_32588/images/P020190624591517840042.png"]').attr('title','投资促进').attr('alt','投资促进');$('img[src="http://pucha.kaipuyun.cn/exposure/images/jiucuo.png?v=2200000050"]').attr('title','无效图片').attr('alt','无效图片');$('img[src="./images/icon_leftnav_09.jpg"]').attr('title','吉林商务预报').attr('alt','吉林商务预报');$('img[src="../../images/jggk2-0819.png"]').attr('title','机构概况').attr('alt','机构概况');$('img[src="./images/gabatb.png"]').attr('title','吉公网安备').attr('alt','吉公网安备');$('img[src="./images/051.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/011.gif"]').attr('title','政策解读').attr('alt','政策解读');$('img[src="./images/001.gif"]').attr('title','内网登录').attr('alt','内网登录');$('img[src="./images/d1.jpg"]').attr('title','首页').attr('alt','首页');$('img[src="//dcs.conac.cn/image/red.png"]').attr('title','党政机关').attr('alt','党政机关');$('img[src="./images/101.gif"]').attr('title','吉林名品').attr('alt','吉林名品');$('img[src="./images/110.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/014.gif"]').attr('title','网上调查').attr('alt','网上调查');$('img[src="./images/icon_leftnav_02.jpg"]').attr('title','内设机构').attr('alt','内设机构');$('img[src="./images/trade2cn0718.jpg"]').attr('title','吉林省国际电子商务应用平台').attr('alt','吉林省国际电子商务应用平台');$('img[src="./images/zggjjkblh.jpg"]').attr('title','中国国际进口博览会').attr('alt','中国国际进口博览会');$('img[src="./images/102.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/icon_leftnav_08.jpg"]').attr('title','吉林省商务诚信公共服务平台').attr('alt','吉林省商务诚信公共服务平台');$('img[src="./images/105.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/010.jpg"]').attr('title','登录').attr('alt','登录');$('img[src="./images/logo10.jpg"]').attr('title','中国进出口商品交易会').attr('alt','中国进出口商品交易会');$('img[src="./images/050.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./tpxw/201912/W020191209556705180577.jpg"]').attr('title','孙国华副厅长会见德国Innoloft 公司一行').attr('alt','孙国华副厅长会见德国Innoloft 公司一行');$('img[src="../../images/084.gif"]').attr('title','装饰图片').attr('alt','装饰图片');

//img
$("img").each(function(){
//给图片加alt/title
var imgAlt = this.alt,
imgTitle = this.title,
imgSrc = this.src,
parentText = this.parentElement.text;

if(this.alt=="" || this.alt==undefined){
if(imgTitle!="" && imgTitle!=undefined){
$(this).attr("alt",imgTitle);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("alt",parentText);
}
}
if(this.title=="" || this.title==undefined){
if(imgAlt!="" && imgAlt!=undefined){
$(this).attr("title",imgAlt);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("title",parentText);
}
}
})

$("img").each(function(){
if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
$(this).attr("title","图片");
$(this).attr("alt","图片");
}
})
/**
* 共通头部
*/
//当前url
_EsdDynamicTransformationScript.currentUrl = window.location.href;
//当前站点的主页判断
_EsdDynamicTransformationScript.isSiteIndexPage = (_EsdDynamicTransformationScript.currentUrl == 'http://swt.jl.gov.cn' || _EsdDynamicTransformationScript.currentUrl == 'http://swt.jl.gov.cn/' || _EsdDynamicTransformationScript.currentUrl == 'http://swt.jl.gov.cn/#' || _EsdDynamicTransformationScript.currentUrl == 'http://swt.jl.gov.cn/index.html')?true:false;

//***************	网站上部/导航栏等公共部分 begin	***************	//

// input type为text,password类型的输入框处理
// 预先定义几个常用的input title值
_EsdDynamicTransformationScript.placeholderKeyword='搜索框';
_EsdDynamicTransformationScript.placeholderUsername='用户名';
_EsdDynamicTransformationScript.placeholderPassword='密码';
_EsdDynamicTransformationScript.placeholderSpecialText1='您对全省城市管理效能提升工作有何意见或建议';
_EsdDynamicTransformationScript.placeholderSelectAllSections='所有栏目下拉框';

// 搜索框 对象
_EsdDynamicTransformationScript.inputObject = $('#keyword');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderKeyword, 'placeholder':_EsdDynamicTransformationScript.placeholderKeyword});

// 用户名框 对象
_EsdDynamicTransformationScript.inputObject = $('input[name="user_code"]');
if($(_EsdDynamicTransformationScript.inputObject).attr('title') == '' && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == ''
|| ($(_EsdDynamicTransformationScript.inputObject).attr('title') == undefined && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == undefined)){
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderUsername, 'placeholder':_EsdDynamicTransformationScript.placeholderUsername});
}
// 密码框 对象
_EsdDynamicTransformationScript.inputObject = $('input[name="user_password"]');
if($(_EsdDynamicTransformationScript.inputObject).attr('title') == '' && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == ''
|| ($(_EsdDynamicTransformationScript.inputObject).attr('title') == undefined && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == undefined)){
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderPassword, 'placeholder':_EsdDynamicTransformationScript.placeholderPassword});
}
// 所有栏目下拉框 对象
_EsdDynamicTransformationScript.inputObject = $('select[name="info_catalog_id"]');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderSelectAllSections});

//***************	网站上部/导航栏等公共部分 end	***************	//
/**
* 主导航
*/
/**
* 网站主页轮播图
*
*/
// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){
/* 轮播,右下角原点--鼠标点击触发情况
轮播：只获取轮播中一个a标签。
以文字a标签为主，图片a标签尽量不要，title不稳定
*/
//轮播前的标签
_EsdDynamicTransformationScript.text = $(".4kuang").next();
_EsdDynamicTransformationScript.num = $(_EsdDynamicTransformationScript.text).find("a").length-1;
//	_EsdDynamicTransformationScript.esdTagFrontNum1 = $(_EsdDynamicTransformationScript.text).find("a:eq("+_EsdDynamicTransformationScript.num+")");
_EsdDynamicTransformationScript.esdTagFrontNum1 = $("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(1) > table:nth-child(9) > tbody > tr > td > div:nth-child(7) > a");
//文字A标签
_EsdDynamicTransformationScript.esdTagANum1 = $(".focusBox-picture .pic li:eq(0) span a");
_EsdDynamicTransformationScript.esdTagANum2 = $(".focusBox-picture .pic li:eq(1) span a");
_EsdDynamicTransformationScript.esdTagANum3 = $(".focusBox-picture .pic li:eq(2) span a");
_EsdDynamicTransformationScript.esdTagANum4 = $(".focusBox-picture .pic li:eq(3) span a");
_EsdDynamicTransformationScript.esdTagANum5 = $(".focusBox-picture .pic li:eq(4) span a");

//原点
_EsdDynamicTransformationScript.esdTagCircleNum1 = $(".focusBox-picture .hd li:eq(0)");
_EsdDynamicTransformationScript.esdTagCircleNum2 = $(".focusBox-picture .hd li:eq(1)");
_EsdDynamicTransformationScript.esdTagCircleNum3 = $(".focusBox-picture .hd li:eq(2)");
_EsdDynamicTransformationScript.esdTagCircleNum4 = $(".focusBox-picture .hd li:eq(3)");
_EsdDynamicTransformationScript.esdTagCircleNum5 = $(".focusBox-picture .hd li:eq(4)");

//轮播后的标签
_EsdDynamicTransformationScript.esdTagAfterNum1 = $("#tab_t1 a");


//轮播前的焦点
_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
$(this).bind("keydown.keydown_0", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown_0");
});



//第一块
_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum1.click();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagFrontNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

//第二块
_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum2.click();
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

//第三块
_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum3.click();
$(this).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

//第四块
_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
$(this).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});

//第五块
_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum5.click();
$(this).bind("keydown.keydown_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
$(this).unbind("keydown.keydown_5");
});

//轮播后的焦点
_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {

$(this).bind("keydown.keydown_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}else if (e.keyCode == 9) {

}
});

});
_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
$(this).unbind("keydown.keydown_6");
});

}
//***************	网站首页 end	***************	//
/**
* 主页js
*/
// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){

$("input[name='Item_1157']:eq(0)").attr({placeholder:"政策解读",title:"政策解读"});
$("input[name='Item_1157']:eq(1)").attr({placeholder:"工作研究",title:"工作研究"});
$("input[name='Item_1157']:eq(2)").attr({placeholder:"商务动态",title:"商务动态"});
$("input[name='Item_1157']:eq(3)").attr({placeholder:"在线咨询",title:"在线咨询"});

$(".button_return_poll:eq(0)").attr({title:"提交"});
$(".button_return_poll:eq(1)").attr({title:"查看"});

$("select[name='info_catalog_id']:eq(0)").attr("title","所有栏目");
$("select[name='select']:eq(0)").attr("title","国务院部委");
$("select[name='select2']:eq(0)").attr("title","各进出口商会");
$("select[name='select3']:eq(0)").attr("title","省政府组成部门");
$("select[name='select4']:eq(0)").attr("title","各省外经贸主管部门");
$("select[name='select5']:eq(0)").attr("title","市州商务主管部门");
$("select[name='select6']:eq(0)").attr("title","其他重要链接");



//第一部分	商务动态/商务信息/会议信息   ----------------- begin
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $("#tab_c1 a").length-1;
_EsdDynamicTransformationScript.num2 = $("#tab_c2 a").length-1;
_EsdDynamicTransformationScript.num3 = $("#tab_c3 a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd1TagNum1 = $("#tab_t1 a");
_EsdDynamicTransformationScript.esd1TagNum2 = $("#tab_t2 a");
_EsdDynamicTransformationScript.esd1TagNum3 = $("#tab_t3 a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd1TagNum1Content1 = $("#tab_c1 a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum2Content1 = $("#tab_c2 a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum3Content1 = $("#tab_c3 a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd1TagNum1ContentN = $("#tab_c1 a:eq("+_EsdDynamicTransformationScript.num1+")");
_EsdDynamicTransformationScript.esd1TagNum2ContentN = $("#tab_c2 a:eq("+_EsdDynamicTransformationScript.num2+")");
_EsdDynamicTransformationScript.esd1TagNum3ContentN = $("#tab_c3 a:eq("+_EsdDynamicTransformationScript.num3+")");

//第一块
_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1_1");
});

_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_1_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_1_s1");
});

_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_1_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_1_e1");
});
//第二块
_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
$(this).unbind("keydown.keydown_1_2");
});

_EsdDynamicTransformationScript.esd1TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_1_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_1_s2");
});

_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_1_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_1_e2");
});

//第三块
_EsdDynamicTransformationScript.esd1TagNum3.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum2.mouseover();
_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum3.blur(function () {
$(this).unbind("keydown.keydown_1_3");
});
//第一部分	商务动态/商务信息/会议信息   ----------------- end

// 国务院+省政府信息  选项卡，为跨域iframe ----------------- begin
/*	//将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
if(iframeObj != undefined){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
jsObj.self = iframeObj;
}
};

//声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取

//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $('iframe:eq(1)').contents().find('#add_t1 a:first');  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $('iframe:eq(1)').contents().find('#add_t1 a:first');  // 需要修改 这里的tab获取

// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

// 当iframe都加载完毕后执行代码 使用setInterval
_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){

if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined)
&&_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined ){
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(this).unbind("keydown.iframeKeydown_1");
});

//第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_first1");
});

//第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_last1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_last1");
});


//第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.mouseover();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
$(_EsdDynamicTransformationScript.iframe2.first_aLink).focus();
return false;
}
});

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(this).unbind("keydown.iframeKeydown_2");
});
}

}, 500);

}
// 国务院+省政府信息  选项卡，为跨域iframe ----------------- end
*/


//第二部分 通知公告/公示    ----------------- begin
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num4 = $("#atzgg1 a").length-1;
_EsdDynamicTransformationScript.num5 = $("#atzgg2 a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd2TagNum1 = $("#btzgg1 a");
_EsdDynamicTransformationScript.esd2TagNum2 = $("#btzgg2 a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd2TagNum1Content1 = $("#atzgg1 a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum2Content1 = $("#atzgg2 a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd2TagNum1ContentN = $("#atzgg1 a:eq("+_EsdDynamicTransformationScript.num4+")");
_EsdDynamicTransformationScript.esd2TagNum2ContentN = $("#atzgg2 a:eq("+_EsdDynamicTransformationScript.num5+")");

//第一块
_EsdDynamicTransformationScript.esd2TagNum1.focus(function (e) {
e = $(this).mouseover();
viewz(1);
$(this).bind("keydown.keydown_gwy_2_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_gwy_2_1");
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
$(this).unbind("keydown.keydown_gwy_2_1");
return false;
}
});

});

_EsdDynamicTransformationScript.esd2TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_gwy_2_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.focus();
$(this).unbind("keydown.keydown_gwy_2_s1");
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_gwy_2_s1");
}
});
});

_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_gwy_2_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_gwy_2_e1");
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.focus();
$(this).unbind("keydown.keydown_gwy_2_e1");
return false;
}
});
});

//第二块
_EsdDynamicTransformationScript.esd2TagNum2.focus(function (e) {
e = $(this).mouseover();
viewz(2);
$(this).bind("keydown.keydown_gwy_2_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
viewz(1);
_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus();
$(this).unbind("keydown.keydown_gwy_2_2");
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.trigger("blur");
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
$(this).unbind("keydown.keydown_gwy_2_2");
return false;
}
});

});
//第二部分 通知公告/公示    ----------------- end
}
// ***************	网站首页 end	***************	//
/**
* 二级页
*/
// ***************	二级页面之 机构职能 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://swt.jl.gov.cn/jgzn/jgzn_158767/'){

}
// ***************	二级页面之 机构职能 end	***************	//
/**
* 二级页
*/
// ***************	二级页面之 信息公开 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://swt.jl.gov.cn/zfxxgk/'){

}
// ***************	二级页面之 信息公开 end	***************	//
/**
* 二级页
*/
// ***************	二级页面之 在线咨询 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://swt.jl.gov.cn/zxzx/yhfbd/'){

}
// ***************	二级页面之 在线咨询 end	***************	//
/**
* 共通底部处理
*/
/**
* 页面区域跳转 选择器定义js
*/
//定义跳转 使用jquery选择器语法	此部分选择器  其中main,left,right和content在各个页面的if判断语句中重写了
_EsdDynamicTransformationScript.navBlock.selector.top="table:eq(1)";
_EsdDynamicTransformationScript.navBlock.selector.nav="table:eq(1)";
_EsdDynamicTransformationScript.navBlock.selector.footer="table:last";


//面包屑导航（除首页）
if( $(".CurrChnlCls").length > 0 ){

//目录页的翻页input处理
$("#num").attr("title","跳转到第多少页");
$("#num").attr("placeholder","跳转到第多少页");
$(".9ptb input[type='submit']").attr("title","提交");
$(".9ptb input[type='submit']").attr("placeholder","提交");

$("table:nth-child(2)").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
_EsdDynamicTransformationScript.navBlock.selector.content="#zoom";

$(".dangqian").addClass("navBlock");
$(".dangqian2").addClass("navBlock");
$(".dangqian").next().addClass("navBlock");
$("body > center > table > tbody > tr > td > table:nth-child(2) > tbody > tr > td > table > tbody > tr > td > table").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}



// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){

_EsdDynamicTransformationScript.navBlock.selector.nav="table:eq(2)";
// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
_EsdDynamicTransformationScript.navBlock.selector.main="table:eq(6)";
_EsdDynamicTransformationScript.navBlock.selector.left="table:eq(7)";
_EsdDynamicTransformationScript.navBlock.selector.right="iframe:eq(0)";
_EsdDynamicTransformationScript.navBlock.selector.content="table:eq(14)";

$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(1) > table.\\34 kuang.navBlock").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(1) > table:nth-child(9)").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(1) > tbody > tr > td:nth-child(1) > table > tbody > tr > td:nth-child(1) > div").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(1) > tbody > tr > td:nth-child(1) > table > tbody > tr > td:nth-child(3)").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(1) > tbody > tr > td:nth-child(2)").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(3) > tbody > tr > td:nth-child(1) > table:nth-child(1)").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(3) > tbody > tr > td:nth-child(1) > table:nth-child(3) > tbody > tr > td:nth-child(1) > table").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(3) > tbody > tr > td:nth-child(1) > table:nth-child(3) > tbody > tr > td:nth-child(3) > table").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(3) > tbody > tr > td:nth-child(1) > table:nth-child(5) > tbody > tr > td:nth-child(1) > table").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(3) > tbody > tr > td:nth-child(1) > table:nth-child(5) > tbody > tr > td:nth-child(3) > table").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(3) > tbody > tr > td:nth-child(2) > table:nth-child(1)").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(3) > tbody > tr > td:nth-child(2) > table:nth-child(2)").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(3) > tbody > tr > td:nth-child(2) > table:nth-child(3)").addClass("navBlock");
$("body > center > table:nth-child(1) > tbody > tr > td > table:nth-child(17) > tbody > tr > td:nth-child(2) > table:nth-child(4)").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个

}
//***************	网站首页 end	***************	//

// ***************	二级页面之 机构职能 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://swt.jl.gov.cn/jgzn/jgzn_158767/'){

// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
_EsdDynamicTransformationScript.navBlock.selector.main="table:eq(3)";
_EsdDynamicTransformationScript.navBlock.selector.left="table:eq(5)";
_EsdDynamicTransformationScript.navBlock.selector.right="table:eq(10)";
_EsdDynamicTransformationScript.navBlock.selector.content="table:eq(3)";

$("table:eq(3)").addClass("navBlock");
$("table:eq(5)").addClass("navBlock");
$("table:eq(10)").addClass("navBlock");
}
// ***************	二级页面之 机构职能 end	***************	//

// ***************	二级页面之 信息公开 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://swt.jl.gov.cn/zfxxgk/'){

// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
_EsdDynamicTransformationScript.navBlock.selector.main="table:eq(2)";
_EsdDynamicTransformationScript.navBlock.selector.left="table:eq(5)";
_EsdDynamicTransformationScript.navBlock.selector.right="table:eq(5)";
_EsdDynamicTransformationScript.navBlock.selector.content="table:eq(2)";

$("table:eq(2)").addClass("navBlock");
$("table:eq(5)").addClass("navBlock");
}
// ***************	二级页面之 信息公开 end	***************	//

// ***************	二级页面之 在线咨询 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://swt.jl.gov.cn/zxzx/yhfbd/'){

// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
_EsdDynamicTransformationScript.navBlock.selector.main="table:eq(2)";
_EsdDynamicTransformationScript.navBlock.selector.left="table:eq(4)";
_EsdDynamicTransformationScript.navBlock.selector.right="table:eq(10)";
_EsdDynamicTransformationScript.navBlock.selector.content="table:eq(2)";

$("table:eq(2)").addClass("navBlock");
$("table:eq(4)").addClass("navBlock");
$("table:eq(10)").addClass("navBlock");
}
// ***************	二级页面之 在线咨询 end	***************	//
/**
* 区域导航、调试开关
*/

$(document).bind("keydown.keydown_9001", function(e) {
if (e.shiftKey && e.keyCode == 20) {
$("*").focus(function() {
$(this).css({
"outline" : "2px dashed red"
});
});
$("*").blur(function() {
$(this).css({
"outline" : "0px black"
});
});
}
});

_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
// 快捷键定义区
//_EsdDynamicTransformationScript.navBlock.key = {};

//_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
//_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
//_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
//_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
//_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
//_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
//_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
//_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
//_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function(i) {
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, el) {
if (i == index) {
_EsdDynamicTransformationScript.navBlock.debugView(el);
$(el).find("a").each(function(i, e) {
if (i == 0) {
$(e).focus();
}
});

}
});
}

// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, ehx) {
_EsdDynamicTransformationScript.navBlock.maxIndex++;
});



// 快捷键功能区域
// 跳转到头部alt+1(49)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 49) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
}

});
// 跳转到导航alt+2(50)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 50) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
}

});
// 跳转到主要区域alt+3(51)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 51) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
}
});

// 跳转到正文区域alt+4(52)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 52) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
}
});

// 跳转到左区域alt+5(53)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 53) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
}
});

// 跳转到右区域alt+6(54)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 54) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
}
});
// 跳转到底部alt+7(55)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 55) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
}
});
//前进alt+8(56)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 56) {
if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex++;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});

// 后退alt+9(57)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 57) {
if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex--;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});
// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function(id) {
if ($(id).length > 0) {
_EsdDynamicTransformationScript.navBlock.appendIns(id,true);//插入ins
_EsdDynamicTransformationScript.navBlock.debugView(id);
$(id).find("a").each(function(index) {
if (index == 0) {
$(this).focus();
}
});
_EsdDynamicTransformationScript.navBlock.appendIns(id,false);//清楚ins
} else {
}

}
//为了解决漂浮高等于0的情况下区域显示是一条线
_EsdDynamicTransformationScript.navBlock.appendIns=function(id,b){
if(b==true){
$(id).append("<ins id='esdNavBlockIns' style='clear: both;display: block;'></ins>")
}else{
$("#esdNavBlockIns").remove();
}
}

if (_EsdDynamicTransformationScript.navBlock.debug == true) {
// 如果开启调试模式，添加调试绘制矩形边线
$("body").append("<div id='show_top' class='lineshow'></div>");
$("body").append("<div id='show_bottom' class='lineshow'></div>");
$("body").append("<div id='show_left' class='lineshow'></div>");
$("body").append("<div id='show_right' class='lineshow'></div>");
$(".lineshow").css({
"display" : "none"
});
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function(e) {
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
var x = $(e).offset();
//var w = parseInt($(e).css("width"));
var w = $(e).outerWidth();//返回元素的宽度（包含 padding 和 border）
//var h = parseInt($(e).css("height"));
var h = $(e).outerHeight();//返回元素的高度（包含 padding 和 border）
$("#show_top").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_bottom").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top + h,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_left").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : "0px",
"height" : h
});
$("#show_right").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left + w,
"width" : "0px",
"height" : h
});
$("html,body").animate({
scrollTop : $("#show_top").offset().top
}, 200);
$(".lineshow").css({
"display" : "block"
});
}
}
};
/**
* 主入口方法
*/

if (window.jQuery == undefined) {
var wzaInitInterval = setInterval(function(){
if(document.body!=null){
clearInterval(wzaInitInterval);
//			var originalWindowOnload = null;
//			if(window.onload!=null){
//				originalWindowOnload = window.onload;
//			}
document.body.onload = function(){
//				originalWindowOnload();
var esdJquery = document.createElement("script");
esdJquery.setAttribute("type", "text/javascript");
esdJquery.setAttribute("src", window.location.protocol + "//" + window.location.href.split("/")[2] + "/wza/bwscript/jquery-1.12.4.min.js");
esdJquery.setAttribute("charset", "utf-8");
esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
document.body.appendChild(esdJquery);
var jqueryLoadInterval = setInterval(function () {
if (window.jQuery != undefined) {
clearInterval(jqueryLoadInterval);
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//						_EsdDynamicTransformationFunction(jQuery)
}
}, 500);
};
}
}, 10);
} else {
jQuery(function(){
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//		_EsdDynamicTransformationFunction(jQuery)
})

}
